/*
 * @Author: SevDaisy十七散人 
 * @Date: 2020-07-04 08:50:42 
 * @Last Modified by: SevDaisy十七散人
 * @Last Modified time: 2020-07-15 00:13:30
 */
package zyy.model;

// 设置 商品目录 <==> 商品 一对多 因此，商品中无需有MID了。
// public static final String[] tableTitles = { "序号", "商品名", "商品挂牌价", "商品实际售价"
// };
// 序号就不展示了 不好看
// private int MID;
public class BeanProduct {
  public static final String[] tableTitles = { "商品名", "商品挂牌价", "商品实际售价", "库存" };
  private int ProductID;// 序号
  private int productDirID;// 分类
  private String pName; // 商品名
  private double pValue; // 商品挂牌价
  private double pRealValue;// 商品实际售价
  private int MID;
  private String mName;
  private double store;// 库存余量

  public String getCell(int col) {
    switch (col) {
      case 0:
        return this.pName;
      case 1:
        return (this.pValue + "");
      case 2:
        return (this.pRealValue + "");
      case 3:
        return this.store + "";
      default:
        return "";
    }
  }

  public int getProductID() {
    return ProductID;
  }

  public void setProductID(int productID) {
    ProductID = productID;
  }

  public int getProductDirID() {
    return productDirID;
  }

  public void setProductDirID(int productDirID) {
    this.productDirID = productDirID;
  }

  public String getpName() {
    return pName;
  }

  public void setpName(String pName) {
    this.pName = pName;
  }

  public double getpValue() {
    return pValue;
  }

  public void setpValue(double pValue) {
    this.pValue = pValue;
  }

  public double getpRealValue() {
    return pRealValue;
  }

  public void setpRealValue(double pRealValue) {
    this.pRealValue = pRealValue;
  }

  @Override
  public String toString() {
    return "BeanProduct [ProductID=" + ProductID + ", pName=" + pName + ", pRealValue=" + pRealValue + ", pValue="
        + pValue + "]";
  }

  public int getMID() {
    return MID;
  }

  public void setMID(int mID) {
    MID = mID;
  }

  public String getmName() {
    return mName;
  }

  public void setmName(String mName) {
    this.mName = mName;
  }

  public double getStore() {
    return store;
  }

  public void setStore(double store) {
    this.store = store;
  }
}